package com.xiaodou.mjf.entity.core;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.xiaodou.mjf.entity.core.base.OrderBase;

/***
 *
 * Order实体定义
 * 
 * @author XiaoDou.com Code Generator
 * @version 1.0 2015-03-04 16:15:25
 *
 */
@Entity
@Table(name = "`order`")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Order extends OrderBase implements Serializable {

	/** 序列化标识 */
	private static final long serialVersionUID = 5109432492107401427L;

	public static Integer TYPE_EXTENAL = 0;
	public static Integer TYPE_INTENAL = 1;

	public static Integer TYPE_DEPOSIT = 1;
	public static Integer TYPE_PAYMENT = 0;

	public static Integer WAIT_PAYMENT = 0;
	public static Integer HAS_PAID = 1;

	@Transient
	public Date startTime;
	@Transient
	public Date endTime;

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Order() {
	}

	public Order(String id) {
		this.id = id;
	}

}
